#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	double x, ans = 0;
	while (cin >> x) {
		ans += x;
		if (ans >= 5e4) {
			cout << fixed << setprecision(1) << ans;
			return 0;
		}
	}
	return 0;
}
